// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '货品类型',
        name: 'producttypemodel',
        url: "/producttypemodel/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"typeName":"","parentId":""};
    const editFormOptions = [[{"title":"类型名称","required":true,"field":"typeName"}],
                              [{"title":"父级类型ID","field":"parentId","type":"number"}]];
    const searchFormFields = {"typeName":""};
    const searchFormOptions = [[{"title":"类型名称","field":"typeName"}]];
    const columns = [{field:'id',title:'主键',type:'bigint',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'typeName',title:'类型名称',type:'string',width:200,require:true,align:'left',sort:true},
                       {field:'parentId',title:'父级类型ID',type:'bigint',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}